package com.ktwlsoft.archivemanage.payload.operation;

import com.ktwlsoft.archivemanage.domain.dao.entity.OperationLog;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
public class PageRequest {

    private int pn;

    private int pageSize;

    @ApiParam("操作类型")
    private OperationLog.OperationType operationType;

    @ApiParam("操作人Id")
    private Long operatorId;

    @ApiParam("路径")
    private String route;

    @ApiParam("业务类型")
    private OperationLog.BusinessType businessType;

    @ApiParam("操作时间起")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date operateFrom;

    @ApiParam("操作时间止")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date operateTo;

    @ApiParam("排序字段")
    private String field;

    @ApiParam("排序方式")
    private String order;
}
